import React, { Component } from 'react'
import qs from 'querystring'

export default class Detail extends Component {
  render() {
    console.log('props-->', this.props)
    const { search } = this.props.location
    const { id, title, con } = qs.parse(search.slice(1))
    return (
      <div>
        <p>id：{id}</p>
        <p>名称: {title}</p>
        <p>内容为：{con}</p>
      </div>
    )
  }
}
